﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace ThridGroup.ERP.DTO.WarehouseManagement
{
    /// <summary>
    /// 物料入库Dto
    /// </summary>
    public class MaterialReceiptLineDto:EntityDto<int>
    {
        /// <summary>
        /// 入库单编号
        /// </summary>
        public string LnboundCode { get; set; }
        /// <summary>
        ///物料编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public int ReceiptQuantity { get; set; }

        /// <summary>
        /// 单据金额
        /// </summary>
        public decimal DocumentAmount { get; set; }

        /// <summary>
        /// 入库仓库
        /// </summary>
        public string ReceiptWarehouse { get; set; }

        /// <summary>
        /// 入库批次号
        /// </summary>
        public string ReceiptBatchNo { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime ExpiryDate { get; set; }
        /// <summary>
        /// 是否检验
        /// </summary>
        public string WhethertoInspect { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }

    }

    // 查询参数Dto
    public class MaterialReceiptLineQueryDto
    {
        public string LnboundCode { get; set; }
        public int page { get; set; } = 1;
        public int limit { get; set; } = 10;
    }

    // 查询结果Dto
    public class MaterialReceiptLineQueryResult
    {
        public List<MaterialReceiptLineDto> Data { get; set; }
        public int TotalCount { get; set; }
    }
}
